package com.dingli.admin.service;

import com.dingli.framework.entity.User;
import com.dingli.framework.util.Response;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IUserService {

    Response<PageInfo<User>> list(String search, Integer pageNum, Integer pageSize);

    Response<Long> insert(User user);

    Response<User> selectById(Long userId);

    Response<Object> updateById(User user);

    Response<Object> deleteById(Long userId);

    Response<Object> deleteBatch(List<Long> idList);

}
